package com.Shoping.dao;

import com.Shoping.entity.User;

import java.sql.SQLException;

public interface UserDao {

    User selectByNamePwd(String userName, String password) throws SQLException;

    User selectByUsername(String userCode) throws SQLException;

    void createUser(String userCode, String newPassword,String uImg,Integer uCategory,String uArea) throws SQLException;

    void updatePassowrd(String password,Integer uid) throws SQLException;

    void insertByInformation(String uName, String uBirthday, String uSex,Integer uId) throws SQLException;

    User selectByUid(Integer uId) throws SQLException;

    void updateImg(Integer getuId, String s) throws SQLException;
}
